<%@ page language="Java" import="java.util.*,descriptor.*,cv.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	String msg = (String)request.getAttribute("msg");
	String error1 = (String)request.getAttribute("error1");
%>

<%	
	String notif_upload = "";
	if(error1 != null)
	{
		notif_upload = "<p style=\"color:red; font-size: 10px;\">" + error1 + "</p>";
	}	
	
	if(msg != null)
	{
		notif_upload = "<p style=\"color:red; font-size: 10px;\">" + msg + "</p>";
	}
%>

<html>
	<jsp:include page="StudentHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Student" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu2'));">
		<jsp:include page="StudentPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="StudentMenu.jsp" ></jsp:include>
			<div id="content">
				<h3 class="posttitle">Student - Upload a CV</h3>
				<div class="entry">
					<form method="post" enctype="multipart/form-data">
						<fieldset>
							<legend>Select your CV</legend>
							<input type="hidden" name="action" value="uploadedCV">
							<p> Do you want to authorize Company Recruiters and Supervisors to view this CV : <input type="radio" name="auth" value="true"> YES <input type="radio" name="auth" value="false" checked> NO
							<p> Select the CV to upload : <input type="file" name="cvFile"> </p> 
							<%= notif_upload %>
							<fieldset>
								<legend>Upload</legend>
								<p><button type="button" OnClick="openCVCheckWindow()">Check CV Specifications</button><button type="submit">Upload CV</button><button type="reset">Clear</button></p>
							</fieldset>
						</fieldset>				
					</form>	
				</div>
	    	</div>
			<jsp:include page="StudentPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>